package eight.test_8_11;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Map<Integer,Integer>  map = new HashMap();
        int n = scanner.nextInt();
        for (int i = 0; i < n; i++) {
            int tmp = scanner.nextInt();
            if(tmp >= 0) {
                map.put(tmp,1);
            }

        }
        for (Map.Entry<Integer,Integer> entry: map.entrySet()) {
            System.out.println(entry.getKey());
        }
    }
}
